home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / oneko / Makefile < prev    next >
Makefile  |  1994-08-01  |  10KB  |  342 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. ###########################################################################
  10. # Makefile generated from "Imake.tmpl" and <Imakefile>
  11. # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate .cf
  14. # configuration files.  Site-wide parameters may be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor doesn't define any unique symbols, you'll need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make Makefile", "make Makefiles", or "make World").
  20. #
  21. # If you absolutely can't get imake to work, you'll need to set the
  22. # variables at the top of each Makefile as well as the dependencies at the
  23. # bottom (makedepend will do this automatically).
  24. #
  25.  
  26. ###########################################################################
  27. # platform-specific configuration parameters - edit sun.cf to change
  28.  
  29. # platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  30. # operating system:  SunOS 4.1.1
  31.  
  32. ###########################################################################
  33. # site-specific configuration parameters - edit site.def to change
  34.  
  35. # site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  36.  
  37.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  38.  
  39.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  40.      EXTENSIONLIB =  -L$(USRLIBDIR) -lXext
  41.  
  42.           DEPXLIB = $(DEPEXTENSIONLIB) $(USRLIBDIR)/libX11.a
  43.              XLIB = $(EXTENSIONLIB)  -L$(USRLIBDIR) -lX11
  44.  
  45.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  46.          XAUTHLIB =  -L$(USRLIBDIR) -lXau
  47.  
  48.         DEPXMULIB = $(USRLIBDIR)/libXmu.a
  49.            XMULIB =  -L$(USRLIBDIR) -lXmu
  50.  
  51.        DEPOLDXLIB = $(USRLIBDIR)/liboldX.a
  52.           OLDXLIB =  -L$(USRLIBDIR) -loldX
  53.  
  54.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.a
  55.          XTOOLLIB =  -L$(USRLIBDIR) -lXt
  56.  
  57.         DEPXAWLIB = $(USRLIBDIR)/libXaw.a
  58.            XAWLIB =  -L$(USRLIBDIR) -lXaw
  59.  
  60.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  61.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  62.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  63.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  64.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  65.  
  66.             SHELL = /bin/sh
  67.  
  68.               TOP = .
  69.       CURRENT_DIR = .
  70.  
  71.                AR = ar cq
  72.   BOOTSTRAPCFLAGS =
  73.                CC = cc
  74.  
  75.          COMPRESS = compress
  76.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  77.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  78.           INSTALL = /usr/local/bin/install
  79.                LD = ld
  80.              LINT = lint
  81.       LINTLIBFLAG = -C
  82.          LINTOPTS = -axz
  83.                LN = ln -s
  84.              MAKE = make
  85.                MV = mv
  86.                CP = cp
  87.            RANLIB = ranlib
  88.   RANLIBINSTFLAGS =
  89.                RM = rm -f
  90.      STD_INCLUDES =
  91.  
  92.    EXTRA_INCLUDES = -I/usr/local/include/res
  93.   STD_CPP_DEFINES =
  94.       STD_DEFINES =
  95.  EXTRA_LOAD_FLAGS =
  96.   EXTRA_LIBRARIES =
  97.              TAGS = ctags
  98.  
  99.     SHAREDCODEDEF = -DSHAREDCODE
  100.          SHLIBDEF = -DSUNSHLIB
  101.  
  102.     PROTO_DEFINES =
  103.  
  104.      INSTPGMFLAGS = -s
  105.  
  106.      INSTBINFLAGS = -m 0755
  107.      INSTUIDFLAGS = -m 4755
  108.      INSTLIBFLAGS = -m 0664
  109.      INSTINCFLAGS = -m 0444
  110.      INSTMANFLAGS = -m 0444
  111.      INSTDATFLAGS = -m 0444
  112.     INSTKMEMFLAGS = -m 4755
  113.  
  114.           DESTDIR =
  115.  
  116.      TOP_INCLUDES = -I$(INCROOT)
  117.  
  118.       CDEBUGFLAGS = -O
  119.         CCOPTIONS =
  120.       COMPATFLAGS =
  121.  
  122.       ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  123.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  124.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  125.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  126.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  127.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  128.    LDCOMBINEFLAGS = -X -r
  129.  
  130.         MACROFILE = sun.cf
  131.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  132.  
  133.     IMAKE_DEFINES =
  134.  
  135.          IRULESRC = $(CONFIGDIR)
  136.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  137.  
  138.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  139.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  140.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  141.  
  142. ###########################################################################
  143. # X Window System Build Parameters
  144. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  145.  
  146. ###########################################################################
  147. # X Window System make variables; this need to be coordinated with rules
  148. # $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  149.  
  150.           PATHSEP = /
  151.         USRLIBDIR = $(DESTDIR)/usr/local/$(DEPOTDIR)lib
  152.            BINDIR = $(DESTDIR)/usr/local/$(DEPOTDIR)bin
  153.           INCROOT = $(DESTDIR)/usr/local/$(DEPOTDIR)include
  154.      BUILDINCROOT = $(TOP)
  155.       BUILDINCDIR = $(BUILDINCROOT)/X11
  156.       BUILDINCTOP = ..
  157.            INCDIR = $(INCROOT)/X11
  158.            ADMDIR = /usr/bin
  159.            LIBDIR = $(USRLIBDIR)/X11
  160.         CONFIGDIR = $(LIBDIR)/config
  161.        LINTLIBDIR = $(USRLIBDIR)/lint
  162.  
  163.           FONTDIR = $(LIBDIR)/fonts
  164.          XINITDIR = $(LIBDIR)/xinit
  165.            XDMDIR = $(LIBDIR)/xdm
  166.            AWMDIR = $(LIBDIR)/awm
  167.            TWMDIR = $(LIBDIR)/twm
  168.            GWMDIR = $(LIBDIR)/gwm
  169.           MANPATH = $(DESTDIR)/usr/local/$(DEPOTDIR)man
  170.     MANSOURCEPATH = $(MANPATH)/man
  171.            MANDIR = $(MANSOURCEPATH)x
  172.         LIBMANDIR = $(MANSOURCEPATH)3
  173.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  174.  
  175.         SOXLIBREV = 4.2
  176.           SOXTREV = 4.0
  177.          SOXAWREV = 4.0
  178.         SOOLDXREV = 4.0
  179.          SOXMUREV = 4.0
  180.         SOXEXTREV = 4.0
  181.  
  182.        FONTCFLAGS = -t
  183.  
  184.      INSTAPPFLAGS = $(INSTDATFLAGS)
  185.  
  186.             IMAKE = imake
  187.            DEPEND = makedepend
  188.               RGB = rgb
  189.             FONTC = bdftosnf
  190.         MKFONTDIR = mkfontdir
  191.         MKDIRHIER = mkdirhier
  192.  
  193.         CONFIGSRC = $(TOP)/config
  194.         CLIENTSRC = $(TOP)/clients
  195.           DEMOSRC = $(TOP)/demos
  196.            LIBSRC = $(TOP)/lib
  197.           FONTSRC = $(TOP)/fonts
  198.        INCLUDESRC = $(TOP)/X11
  199.         SERVERSRC = $(TOP)/server
  200.           UTILSRC = $(TOP)/util
  201.         SCRIPTSRC = $(UTILSRC)/scripts
  202.        EXAMPLESRC = $(TOP)/examples
  203.        CONTRIBSRC = $(TOP)/../contrib
  204.            DOCSRC = $(TOP)/doc
  205.            RGBSRC = $(TOP)/rgb
  206.         DEPENDSRC = $(UTILSRC)/makedepend
  207.          IMAKESRC = $(CONFIGSRC)
  208.          XAUTHSRC = $(LIBSRC)/Xau
  209.           XLIBSRC = $(LIBSRC)/X
  210.            XMUSRC = $(LIBSRC)/Xmu
  211.        TOOLKITSRC = $(LIBSRC)/Xt
  212.        AWIDGETSRC = $(LIBSRC)/Xaw
  213.        OLDXLIBSRC = $(LIBSRC)/oldX
  214.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  215.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  216.      MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  217.      EXTENSIONSRC = $(TOP)/extensions
  218.  
  219.   DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  220.      EXTENSIONLIB =  -lXext
  221.  
  222.           DEPXLIB = $(DEPEXTENSIONLIB)
  223.              XLIB = $(EXTENSIONLIB) -lX11
  224.  
  225.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  226.          XAUTHLIB =  -lXau
  227.  
  228.         DEPXMULIB =
  229.            XMULIB = -lXmu
  230.  
  231.        DEPOLDXLIB =
  232.           OLDXLIB = -loldX
  233.  
  234.       DEPXTOOLLIB =
  235.          XTOOLLIB = -lXt
  236.  
  237.         DEPXAWLIB =
  238.            XAWLIB = -lXaw
  239.  
  240.  LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  241.          LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  242.           LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  243.         LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  244.           LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  245.  
  246.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  247.  
  248.          DEPLIBS1 = $(DEPLIBS)
  249.          DEPLIBS2 = $(DEPLIBS)
  250.          DEPLIBS3 = $(DEPLIBS)
  251.  
  252. ###########################################################################
  253. # Imake rules for building libraries, programs, scripts, and data files
  254. # rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  255.  
  256. ###########################################################################
  257. # start of Imakefile
  258.  
  259. # Cannot compile in using Gcc
  260.              CC = cc
  261.  
  262. LOCAL_LIBRARIES = -L/usr/local/lib $(XLIB)
  263.   SYS_LIBRARIES = -lm
  264.         DEPLIBS = $(DEPXLIB)
  265.         DEFINES = -DSHAPE -I/usr/local/include
  266.  
  267. CP = /bin/cp
  268. STRIP = /bin/strip
  269. RM = /bin/rm -f
  270.  
  271.  OBJS = oneko.o
  272.  SRCS = oneko.c
  273.  
  274.  PROGRAM = oneko
  275.  
  276. all:: oneko
  277.  
  278. oneko: $(OBJS) $(DEPLIBS)
  279.     $(RM) $@
  280.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  281.  
  282. install:: oneko
  283.     $(INSTALL) -c $(INSTPGMFLAGS)   oneko $(BINDIR)
  284.  
  285. install.man:: oneko.man
  286.     $(INSTALL) -c $(INSTMANFLAGS) oneko.man $(MANDIR)/oneko.x
  287.  
  288. depend::
  289.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  290.  
  291. lint:
  292.     $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  293. lint1:
  294.     $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  295.  
  296. clean::
  297.     $(RM) $(PROGRAM)
  298.  
  299. DESTDIR = /afs/andrew/system/dest/@sys/contributed/neko/011
  300.  
  301. install::
  302.     $(RM) $(DESTDIR)/bin/oneko $(DESTDIR)/man/man1/oneko.man
  303.     $(CP) oneko $(DESTDIR)/bin/oneko
  304.     $(STRIP) $(DESTDIR)/bin/oneko
  305.     $(CP) oneko.man $(DESTDIR)/man/man1/oneko.1
  306.  
  307. ###########################################################################
  308. # common rules for all Makefiles - do not edit
  309.  
  310. emptyrule::
  311.  
  312. clean::
  313.     $(RM_CMD) \#*
  314.  
  315. Makefile::
  316.     -@if [ -f Makefile ]; then \
  317.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  318.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  319.     else exit 0; fi
  320.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  321.  
  322. tags::
  323.     $(TAGS) -w *.[ch]
  324.     $(TAGS) -xw *.[ch] > TAGS
  325.  
  326. ###########################################################################
  327. # empty rules for directories that do not have SUBDIRS - do not edit
  328.  
  329. install::
  330.     @echo "install in $(CURRENT_DIR) done"
  331.  
  332. install.man::
  333.     @echo "install.man in $(CURRENT_DIR) done"
  334.  
  335. Makefiles::
  336.  
  337. includes::
  338.  
  339. ###########################################################################
  340. # dependencies generated by makedepend
  341.  
  342.